#include "FlameJetBox.h"

#include "Events\CSGD_EventSystem.h"
#include "../SGD Wrappers/CSGD_Direct3D.h"

FlameJetBox::FlameJetBox(void)
{
	objectID = "FlameJetBox";
	hitBox.left = 0;
	hitBox.top = 0;
	hitBox.right = 100;
	hitBox.bottom = 100;
}


FlameJetBox::~FlameJetBox(void)
{
}

void FlameJetBox::Update(float deltaTime)
{

}
void FlameJetBox::Render(void) const
{
	CSGD_Direct3D::GetInstance()->DrawHollowRect(hitBox, D3DCOLOR_ARGB(255,0,255,0));

}
void FlameJetBox::HandleCollision(GameObject& other, CollisionInfo& info)
{
	if(other.GetObjectID() == "Player")
	{
		CSGD_EventSystem::GetInstance()->SendEvent("KillPlayer",(void*)0,(void*)0, (void*)this);
	}
}

void FlameJetBox::UpdateCollBox(RECT box)
{
	SetHitBox(box);
}